package com.code.modules.base.service;

import com.baomidou.mybatisplus.service.IService;
import com.code.modules.base.model.Role;

import java.util.List;


/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author MyBatisPlus
 * @since 2021-10-19
 */
public interface RoleService extends IService<Role> {

    List<Role> findRoleByuserid(Integer userid);

    boolean checkRolecode(String code);

    List<Role> getPageList(String condition);

    void setAuthority(Integer roldid, List<Integer> resids);


}
